package oopday03.Test02;

public class Car extends Vehicles {
    int seats;//座位数量

    public Car(String brand, String colcor, int seats) {
        super(brand, colcor);
        this.seats = seats;
    }

    public Car() {

    }

    public int getSeats() {
        return seats;
    }

    public void setSeats(int seats) {
        this.seats = seats;
    }

    public void showCar() {
        System.out.println("小汽车商标为：" + getBrand() + "，颜色为：" + getColcor() + "，座位数为：" + getSeats());
    }
}
